To punish someone according to one's own idea of justice and without consideration for the role of law enforcement authorities.
After his son's killer was let off without a conviction, the man decided to take the law into his own hands.